// components/backTop/backTop.js
import { config } from '../../utils/config'
Component({
  /**
   * Component properties
   */
  properties: {
    
  },
  /**
   * Component initial data
   */
  data: {
    imgUrl: config.imgUrl,
  },

  /**
   * Component methods
   */
  methods: {
    
    goTop: function () {
      wx.pageScrollTo({
        scrollTop: 0,
        duration: 300
      })
    },
  }
})
